<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<link rel="stylesheet" href="assets/mui/css/mui.min.css">
	<link rel="stylesheet" href="assets/mui/css/iconfont.css">
	<link rel="stylesheet" href="css/base.css">
	<link rel="stylesheet" href="css/form.css">
	<script src="assets/zepto/zepto.min.js"></script>
	<script src="assets/mui/js/mui.min.js"></script>
	<script src="assets/artTemplate/template-native.js"></script>
	<script src="js/address.js"></script>
	<script src="js/common.js"></script>

</head>

<body>
	<header class="mui-bar mui-bar-nav my-header">
		<a href="search.html" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">收货地址列表</h1>

	</header>
	<nav class="mui-bar mui-bar-tab my-footer">
		<a class="mui-tab-item" href="index.html">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item" href="category.html">
			<span class="mui-icon mui-icon-bars"></span>
			<span class="mui-tab-label">分类</span>
		</a>
		<a class="mui-tab-item" href="cart.html">
			<span class="mui-icon iconfont icon-gouwuche"></span>
			<span class="mui-tab-label">购物车</span>
		</a>
		<a class="mui-tab-item" href="user.html">
			<span class="mui-icon mui-icon-person"></span>
			<span class="mui-tab-label">会员中心</span>
		</a>
	</nav>
	<div class="mui-content">
		<a href="addAddress.html" style="display: block;padding:10px 0;text-align: center">添加收货地址</a>
		<ul class="mui-table-view">
			<li class="mui-table-view-cell">
				<div class="mui-slider-right">
					<a class="mui-btn mui-btn-blue">编辑</a>
					<a class="mui-btn mui-btn-red">删除</a>
				</div>
				<div class="mui-media-body mui-slider-handle">
					邮编:100000 收货人:孙悟空
					<p class='mui-ellipsis'>安徽省合肥市瑶海区闽商大厦x楼x室</p>
				</div>
			</li>
		</ul>
	</div>
</body>
<script type="text/html" id="addressList">
	<% for(var i=0;i<data.length;i++){ %>
		<li class="mui-table-view-cell">
			<div class="mui-slider-right">
				<a href="editAddress.html?id=<%=data[i].id%>" class="mui-btn mui-btn-blue">编辑</a>
				<a href="javascript:;" data-id="<%=data[i].id%>" class="mui-btn mui-btn-red">删除</a>
			</div>
			<div class="mui-media-body mui-slider-handle">
				邮编:<%=data[i].postCode%> 收货人:<%=data[i].recipients%>
				<p class='mui-ellipsis'><%=data[i].address%><%=data[i].addressDetail%></p>
			</div>
		</li>
	<% } %>
</script>

</html>